{* include file="tpl_defaults/header.html" *}

    <div id="main">
        
        <!-- 面包屑导航 -->
        <div id="bread" class="box list sky-blue">
            <span class="left">
                <a href="{*$app_bbs_url*}">爱居社区</a>
                <img src="/images/divider.gif" />
                帖子搜索
            </span>
        </div>

        <!-- 高级搜索 -->
        <div class="list">
            <h1 class="block_sub">搜索目标</h1>
            <div class="list_table mainbox">
                <table>
                    <thead>
                        <tr>
                            <td colspan="5">&nbsp;</td>
                        </tr>
                    </thead>
<form method=post action="?action=do">
						                    <tbody>
                        <tr>
                            <td colspan="5">
                                <div id="forum-search">
                                    <div>
                                        <p>                                            
                                            <input type="radio" name="keytype" value="word" {*if $type neq 'user' *}checked{*/if*}/>
                                            按关键词
                                            <input type="radio" name="keytype" value="user" {*if $type eq 'user' *}checked{*/if*}/>
                                            按用户名
                                        </p>
                                        <p>
                                            <span class="b">关键词</span>
                                            <input class="txt" type="text"  NAME="keyword" value="{*$keyword*}"/>
                                            <input class="btn" type="submit" value="搜索"/>
                                            <a onclick="cat_toggle(this, 'advanced_search')">高级搜索</a>
                                        </p>
                                    </div>
                                </div>
                                <div id="advanced_search" style="display:none;">
                                    <dl>
                                        <dt>帖子范围</dt>
                                        <dd>
										<input type="radio" name="topic" name="scharea" value="0" checked/>主题标题
										<input type="radio" name="topic" name="scharea" value="1"/>主题标题与主题内容
										<input type="radio" name="topic" name="scharea" value="2"/>回复标题与回复内容
										</dd>
                                        <dt>所在版块</dt>
                                        <dd>
										<select name="fid" >
											<option value="0">全部版块分类</option>
											{* foreach from=$froumformat  key = key item=item *}
											<option value="{*$item->fid*}">
											{*if $item->formatpre*}{*$item->formatpre*}|- {*else*}&gt;&gt; {*/if*}{*$item->name*}
											</option>
											{*/foreach*}
											</select>
                                        </dd>
                                        <dt>发贴时间</dt>
                                        <dd>
											<select id="schfrom" name="schfrom">
											<option value="0">全部时间</option>
											<option value="86400">1 天</option>
											<option value="172800">2 天</option>
											<option value="604800">1 周</option>

											<option value="1296000">1 个月</option>
											<option value="5184000">3 个月</option>
											<option value="8640000">6 个月</option>
											<option value="31536000">1 年</option>
											</select>
                                        </dd>
                                        <dt>排序类型</dt>
                                        <dd>
											<select id="orderby" name="orderby">
											<option value="lasttime" selected="selected">回复时间</option>
											<option value="createtime">发布时间</option>
											<option value="replies">回复数量</option>
											<option value="views">浏览次数</option>
											</select>
                                            <input type="radio" name="ascdesc" value="asc" /> 按升序排列
											<input type="radio" name="ascdesc" value="desc" checked="checked" /> 按降序排列
                                        </dd>
                                    </dl>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                    </form>
                    <thead>
                        <tr>
                            <td class="normal-subject" colspan="5">主题列表</td>
                        </tr>
                    </thead>
					{* foreach from=$aSearchThread  key = key item=item *}
                    <tbody>
                        <tr onmouseover="hover(this);" onmouseout="out(this);">
                            <td class="folder"><a href="#"><img src="/images/thread/topic.gif" /></a></td>
                            <th class="subject"><h2>{*if $item->icon*}<span class="icon"><img src="/images/icon/{*$item->icon*}" border="0" alt=""></span>{*/if*}<a title="{*$item->subject*}" href="t{*$item->tid*}.html" target="_blank">{*$item->subject*}</a></h2></th>
                            <td class="author">
                                {*if $item->isanonymous neq 'Y'*}<a href="#">{*$item->username*}</a>{*else*}匿名{*/if*}
                                <em class="time">{* $item->createtime|date_format:"%Y-%m-%d" *}</em>
                            </td>
                            <td class="nums"><em>{*$item->views*}</em>/{*$item->replies*}</td>
                            <td class="forumname">
                                {*$item->forumname*}
                            </td>
                        </tr>
                    </tbody>
					{*foreachelse*}
                    <tbody>
					    <tr>
						    <td colspan="5" align="center">没有帖子
                            </td>
                        </tr>
                    </tbody>
					{*/foreach*}

                </table>
            </div>
        </div>
        <!-- 帖子分类 -->
        <div class="list">          
            <div class="left">
                <p class="post_page">
                   {*$page*}
                </p>
            </div>
        </div>
        <!-- 版块分类 -->
        <div class="legend list">
            <label><img src="/images/thread/topicnew.gif" />新主题</label>
            <label><img src="/images/thread/topichot.gif" />热门主题</label>
            <label><img src="/images/thread/topiclock.gif" />锁定主题</label>
            <label><img src="/images/thread/vote.gif" />投票主题</label>
            <label><img src="/images/thread/trade.gif" />交易主题</label>
        </div>
    </div>


    </div>

{* include file="tpl_defaults/footer.html" *}

